from pyecharts.charts import Pie  # 从pyecharts中导入line类
from pyecharts import options as opts  # 使用 options 配置项
import pandas as pd

df = pd.read_csv(r"gdp.csv")

years = df.iloc[0, 1:9].index.tolist()
gd = df.iloc[18, 1:9].values.tolist()
js = df.iloc[9, 1:9].values.tolist()

pie = (
    Pie()

        .add("广东", [list(z) for z in zip(years, gd)],
             center=["25%", "50%"],
             radius=[0, 140],
             rosetype="area")

        .add("江苏", [list(z) for z in zip(years, js)],
             center=["75%", "50%"],
             radius=[0, 140],
             rosetype="area")
)
pie.render_notebook()